﻿#ifndef MYMESSAGEBOX_H
#define MYMESSAGEBOX_H

#include <QObject>

class MyMessageBox : public QObject
{
    Q_OBJECT
public:
    explicit MyMessageBox(QObject *parent = nullptr);

private:
    const QString m_title;
    const QString m_message;

public:
    MyMessageBox(const QString &title, const QString &message);

    static void warning(const QString &title, const QString &message);

    static void information(const QString &title, const QString message);

private:
    void readyShow(int type);

public slots:
    void onShowWarining(void);

    void onShowInformation(void);
};

#endif // MYMESSAGEBOX_H
